﻿#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QIcon icon(":/4.png");
    ui->pushButton->setIcon(icon);
       // 设置图标的大小
    ui->pushButton->setIconSize(ui->pushButton->size()); // 设置图标的尺寸
    ui->pushButton->setStyleSheet("border:none;background:none;");
    ui->pushButton->setShortcut(QKeySequence("alt+s"));
}


MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    qDebug("我是按钮");
}
